import { httpReq } from "@/utils/http.js"

const GetCreateOrderList = (data) => {
	return httpReq({
		url: '/xiaoshou/GetCreateOrderList',
		method: 'GET',
		data
	})
}

const CreateOrder = (data) => {
	return httpReq({
		url: '/xiaoshou/CreateOrder',
		method: 'POST',
		data
	})
}

const EditOrder = (data) => {
	return httpReq({
		url: '/xiaoshou/EditOrder',
		method: 'POST',
		data
	})
}

const GetOrderDetile = (data) => {
	return httpReq({
		url: '/xiaoshou/GetOrderDetile',
		method: 'GET',
		data
	})
}

const DeleteOrderDetile = (data) => {
	return httpReq({
		url: '/xiaoshou/DeleteOrderDetile',
		method: 'GET',
		data
	})
}

const CreateOrderItem = (data) => {
	return httpReq({
		url: '/xiaoshou/CreateOrderItem',
		method: 'POST',
		data
	})
}

const EditOrderItem = (data) => {
	return httpReq({
		url: '/xiaoshou/EditOrderItem',
		method: 'POST',
		data
	})
}

const DeleteOrderItem = (data) => {
	return httpReq({
		url: '/xiaoshou/DeleteOrderItem',
		method: 'GET',
		data
	})
}

export { GetCreateOrderList, CreateOrder, EditOrder, GetOrderDetile, DeleteOrderDetile, CreateOrderItem, EditOrderItem, DeleteOrderItem  }